using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAOLayer;
using System.Data;

namespace BUSLayer
{
    public class DocGiaBus
    {
        public DataTable LayDanhSach()
        {
            DocGiaDao dgDao = new DocGiaDao();
            DataTable dt = dgDao.LayDanhSach();
            return dt;
        }

        public void Them(DocGiaDto dgDto)
        {
            DocGiaDao dgDao = new DocGiaDao();
            dgDao.Them(dgDto);
        }

        public DocGiaDto TimKiem(int maDG)
        {
            DocGiaDao dgDao = new DocGiaDao();
            DocGiaDto dgDto = dgDao.TimKiem(maDG);
            return dgDto;
        }

        public void Sua(DocGiaDto dgDto)
        {
            DocGiaDao dgDao = new DocGiaDao();
            dgDao.Sua(dgDto);
        }

        public void Xoa(int maDg)
        {
            DocGiaDao dgDao = new DocGiaDao();
            dgDao.Xoa(maDg);
        }
    }
}
